package org.example.demo02;

import java.lang.reflect.Constructor;

public class Men {
   public static void main(String[] args) throws NoSuchFieldException, ClassNotFoundException {
      Class studentend =studentens.class;
      System.out.println(studentend.getName());
     Constructor[]constructors = studentend.getConstructors();
      for (Constructor constructor : constructors) {
         //System.out.println(Constructor.getName()+"--->"+Constructor.getparametercount());
      }

      Class c2 = Class.forName("org.example.demo02.studentens");
      System.out.println(c2.getName());
      studentens s=new studentens();
      Class s1=s.getClass();
   }
}
   class person{
      public String name;
      public int age;
      int a=26;
   }
   class studentens extends person{
      public String name;
      private char gender;
      public studentens(){

      }
      public studentens(String name, int age, char gender) {
         this.name = name;
      }
      public void w01(){
         System.out.println("谢谢你们呀");
      }
   }

